import request from '@/utils/request'

// 创建活动报名申请
export function createActivityApply(data) {
  return request({
    url: '/api/club_activity_application/',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

// 获取活动报名列表
export function getActivityApplyList(data) {
  return request({
    url: '/api/club_activity_application/myapplication/',
    method: 'get',
    params: data
  })
}

// 获取活动报名一级审核列表
export function getActivityApplyFirstCheck(data) {
  return request({
    url: '/api/club_activity_application/first_check_list/',
    method: 'get',
    params: data
  })
}

// 获取活动报名二级审核列表
export function getActivityApplySecondCheck(data) {
  return request({
    url: '/api/club_activity_application/second_check_list/',
    method: 'get',
    params: data
  })
}

// 进行一级审核
export function firstCheckActivityApply(id, data) {
  return request({
    url: '/api/club_activity_application/' + id + '/first_check/',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

// 进行二级审核
export function secondCheckActivityApply(id, data) {
  return request({
    url: '/api/club_activity_application/' + id + '/second_check/',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: data
  })
}

